home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / dvips.new / Makefile.orig < prev    next >
Makefile  |  1991-01-13  |  6KB  |  205 lines

  1. #
  2. #   Makefile for dvips
  3. #
  4.  
  5. # If you are compiling dvips for suid or other privileges, you will
  6. # definitely want to define the following symbol; else don't.
  7. # SECURE = -DSECURE
  8.  
  9. # If you want EMTEX specials, define the following.
  10. EMTEX = -DEMTEX
  11.  
  12. # for SYSV (and friends which use <string.h> instead of <strings.h>)
  13. # define the c-compiler flag
  14. # add -D_POSIX_SOURCE if you are POSIX (also define SYSV) (only relevant
  15. # for subdir searching)
  16. # SYS = -DSYSV
  17.  
  18. # where the installed binary goes
  19. # BINDIR = /usr/bin
  20. BINDIR = /usr/bin
  21.  
  22. # where the TFM files go
  23. # TFMDIR = /usr/lib/tex/fonts/tfm
  24. TFMDIR = /usr/lib/tex/fonts/tfm
  25.  
  26. # the default path to search for TFM files 
  27. # (this usually is identical to TeX's defaultfontpath, which omits `.')
  28. # (private fonts are given an explicit directory, which overrides the path)
  29. # TFMPATH = /LocalLibrary/Fonts/TeXFonts/tfm:$(TFMDIR)
  30. TFMPATH = /LocalLibrary/Fonts/TeXFonts/tfm:$(TFMDIR)
  31.  
  32. # where the PK files go.
  33. # PKDIR = /usr/lib/tex/fonts/pk
  34. PKDIR = /usr/lib/tex/fonts/pk
  35.  
  36. # the default path to search for PK files (usually omits `.')
  37. # Don't forget to add the directory that
  38. # MakeTeXPK puts the files!  (In this case, /LocalLibrary/Fonts...)
  39. # PKPATH = /LocalLibrary/Fonts/TeXFonts/pk:$(PKDIR)
  40. PKPATH = /LocalLibrary/Fonts/TeXFonts/pk:$(PKDIR)
  41.  
  42. # where the VF files go
  43. # VFDIR = /usr/lib/tex/fonts/vf
  44. VFDIR = /usr/lib/tex/fonts/vf
  45.  
  46. # the default path to search for VF files (usually omits `.')
  47. # VFPATH = /LocalLibrary/Fonts/TeXFonts/vf:$(VFDIR)
  48. VFPATH = /LocalLibrary/Fonts/TeXFonts/vf:$(VFDIR)
  49.  
  50. # additional directories in which to search for subdirectories to find
  51. # both tfm and pk files
  52. FONTSUBDIRPATH = 
  53.  
  54. # where the config files go
  55. # CONFIGDIR = /usr/lib/tex/ps
  56. CONFIGDIR = /usr/lib/tex/ps
  57.  
  58. # the default path to search for config files
  59. # CONFIGPATH = .:$(CONFIGDIR)
  60. CONFIGPATH = .:$(CONFIGDIR)
  61.  
  62. # the name of your config file
  63. # CONFIGFILE = config.ps
  64. CONFIGFILE = config.ps
  65.  
  66. # where the header PS files go
  67. # HEADERDIR = /usr/lib/tex/ps
  68. HEADERDIR = /usr/lib/tex/ps
  69.  
  70. # the default path to search for header files
  71. # HEADERPATH = .:$(HEADERDIR)
  72. HEADERPATH = .:$(HEADERDIR)
  73.  
  74. # where epsf.tex and rotate.tex go (usually the TeX macros directory)
  75. # TEXMACRODIR = /usr/lib/tex/inputs
  76. TEXMACRODIR = /usr/lib/tex/inputs
  77.  
  78. # the default path to search for epsf and psfiles
  79. # (usually the same as TeX's defaultinputpath)
  80. # FIGPATH = .:..:/usr/lib/tex/inputs
  81. FIGPATH = .:..:/usr/lib/tex/inputs
  82.  
  83. # where the manual page goes
  84. # MANDIR = /usr/local/text/man/man1
  85. MANEXT = 1
  86. MANDIR = /usr/local/text/man/man$(MANEXT)
  87.  
  88. # add -DDEBUG to turn on debugging capability
  89. # add -DTPIC for tpic support
  90. # if the default resolution is not 300 dpi,
  91. # add -DDEFRES=400 or whatever is required
  92. # add -DFONTLIB to search font libraries
  93. # add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
  94. # add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
  95. DEFS= -DTPIC -DDEBUG -DDEFRES=400
  96.  
  97. # either use
  98. # OPT = -g -Wall
  99. # or
  100. OPT = -O -s -Wall
  101.  
  102. # libraries to include (-lm -lc on most systems)
  103. #FLIBS= -lNeXT_s -lsys_s
  104. FLIBS= -lNeXT_s -lsys_s
  105.  
  106. PATHS = -DTFMPATH=\"$(TFMPATH)\" \
  107.     -DPKPATH=\"$(PKPATH)\" \
  108.     -DVFPATH=\"$(VFPATH)\" \
  109.     -DHEADERPATH=\"$(HEADERPATH)\" \
  110.     -DCONFIGPATH=\"$(CONFIGPATH)\" \
  111.         -DCONFIGFILE=\"$(CONFIGFILE)\" \
  112.     -DFONTSUBDIRPATH=\"$(FONTSUBDIRPATH)\" \
  113.     -DFIGPATH=\"$(FIGPATH)\"
  114.  
  115. CFLAGS = $(DEFS) $(PATHS) $(OPT) $(SYS) $(SECURE) $(EMTEX)
  116.  
  117. SRC = dospecial.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
  118.     download.c prescan.c scanpage.c skippage.c output.c scalewidth.c \
  119.     dosection.c dopage.c resident.c search.c unpack.c drawPS.c \
  120.     header.c makefont.c repack.c virtualfont.c dpicheck.c finclude.c \
  121.     flib.c
  122.  
  123. OBJ = dospecial.o dviinput.o fontdef.o loadfont.o dvips.o tfmload.o \
  124.     download.o prescan.o scanpage.o skippage.o output.o scalewidth.o \
  125.     dosection.o dopage.o resident.o search.o unpack.o drawPS.o \
  126.     header.o makefont.o repack.o virtualfont.o dpicheck.o finclude.o \
  127.     flib.o
  128.  
  129. # files required to make a distribution
  130. CONFIGFILES = config.ps psfonts.map
  131. HEADERFILES = tex.lpro texc.script texps.lpro special.lpro finclude.lpro
  132. FILES = $(CONFIGFILES) $(HEADERFILES) $(SRC) \
  133.     Makefile INSTALLATION README rotsample.tex AGaramond-Demo.pfb \
  134.     MakeTeXPK ../afm/Makefile epsf.tex epsf.sty rotate.tex rotate.sty \
  135.         dvips.1 paths.h debug.h structures.h squeeze.c afm2tfm.c afm2tfm.1
  136.  
  137. all : afm2tfm dvips tex.pro texps.pro texc.pro special.pro finclude.pro
  138.  
  139. dvips : $(OBJ)
  140.     $(CC) $(CFLAGS) $(OBJ) $(LIBS) $(FLIBS) -o dvips
  141.  
  142. afm2tfm: afm2tfm.c
  143.     $(CC) $(CFLAGS) -o afm2tfm afm2tfm.c $(LIBS) $(FLIBS)
  144.  
  145. $(OBJ) : structures.h debug.h Makefile
  146. flib.o resident.o dvips.o loadfont.o tfmload.o : paths.h
  147.  
  148. squeeze : squeeze.o
  149.     $(CC) $(CFLAGS) squeeze.o -o squeeze $(LIBS) $(FLIBS)
  150.  
  151. tex.pro : tex.lpro squeeze
  152.     ./squeeze <tex.lpro > tex.pro
  153.  
  154. texc.pro: texc.lpro squeeze
  155.     ./squeeze <texc.lpro >texc.pro
  156.  
  157. texc.lpro: texc.script tex.lpro
  158.     ./texc.script tex.lpro texc.lpro
  159.  
  160. texps.pro : texps.lpro squeeze
  161.     ./squeeze <texps.lpro >texps.pro
  162.  
  163. special.pro : special.lpro squeeze
  164.     ./squeeze <special.lpro >special.pro
  165.  
  166. finclude.pro : finclude.lpro squeeze
  167.     ./squeeze <finclude.lpro >finclude.pro
  168.  
  169. install : afm2tfm dvips MakeTeXPK \
  170.     tex.pro texc.pro texps.pro special.pro finclude.pro \
  171.     config.ps psfonts.map epsf.tex epsf.sty rotate.tex rotate.sty \
  172.     dvips.1 afm2tfm.1
  173.     - mkdir $(BINDIR)
  174.     - mkdir $(HEADERDIR)
  175.     - mkdir $(CONFIGDIR)
  176.     - mkdir $(MANDIR)
  177.     - mkdir $(TEXMACRODIR)
  178.     install -c -m 755 afm2tfm $(BINDIR)/afm2tfm
  179.     install -c -m 755 dvips $(BINDIR)/dvips
  180.     install -c -m 755 MakeTeXPK $(BINDIR)/MakeTeXPK
  181.     install -c -m 644 tex.pro $(HEADERDIR)
  182.     install -c -m 644 texc.pro $(HEADERDIR)
  183.     install -c -m 644 texps.pro $(HEADERDIR)
  184.     install -c -m 644 special.pro $(HEADERDIR)
  185.     install -c -m 644 finclude.pro $(HEADERDIR)
  186.     install -c -m 644 config.ps $(CONFIGDIR)/$(CONFIGFILE)
  187.     install -c -m 644 psfonts.map $(CONFIGDIR)
  188.     install -c -m 644 epsf.tex $(TEXMACRODIR)
  189.     install -c -m 644 epsf.sty $(TEXMACRODIR)
  190.     install -c -m 644 rotate.tex $(TEXMACRODIR)
  191.     install -c -m 644 rotate.sty $(TEXMACRODIR)
  192.     -install -c -m 644 dvips.1 $(MANDIR)/dvips.$(MANEXT)
  193.     -install -c -m 644 afm2tfm.1 $(MANDIR)/afm2tfm.$(MANEXT)
  194.  
  195. veryclean :
  196.     rm -f *.o dvips squeeze afm2tfm texc.lpro *.pro *~ *.log *.dvi
  197.  
  198. clean :
  199.     rm -f *.o squeeze afm2tfm *~ *.log *.dvi
  200.  
  201. lint :
  202.     lint $(DEFS) $(PATHS) $(SRC)
  203.     lint $(DEFS) squeeze.c
  204.     lint $(DEFS) afm2tfm.c
  205.